package Manager;

import javax.naming.Name;

public class Product {
    public String name;
    public double price;
    public int stock;
    public int num;
    public Product(String name, double price, int stock,int num) {
        this.name = name;
        this.price = price;
        this.stock=stock;
        this.num = num;
    }
    public Product(){
    }
    @Override
    public String toString() {
        return name + " - ¥" + price;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    public int getStock() {
        return stock;
    }

    public int getQuantity() {
        return num;
    }
}
